<span ng-show=" i[key.name] != null && i[key.name].length <= 20 ">
    <a ng-click="$ctrl.funTd(i)" href="javascript:void(0);" ng-if="key.fun">{{i[key.name]}}</a>
    <span ng-if="!key.fun">{{i[key.name]}}</span>
</span>
<a ng-if="key.fun" ng-click="$ctrl.funTd(i)"
   ng-show=" i[key.name] != null && i[key.name].length > 20 " href="javascript:void(0)"
   class="btn-link" type="button"
   popover="{{i[key.name]}}" popover-trigger="mouseenter">
    {{i[key.name] | limitTo: 20}}...
</a>
<a ng-if="!key.fun" ng-show=" i[key.name] != null && i[key.name].length > 20 "
   href="javascript:void(0)"
   class="btn-link" type="button"
   popover="{{i[key.name]}}" popover-trigger="mouseenter">
    {{i[key.name] | limitTo: 20}}...
</a>
<span ng-if="$ctrl.typeOf(i[key.name]) == 'number'">
    <a ng-click="$ctrl.funTd" href="javascript:void(0);" ng-if="key.fun">{{i[key.name]|date:'yyyy-MM-dd'}}</a>
    <span ng-if="!key.fun">{{i[key.name]|date:'yyyy-MM-dd'}}</span>
</span>